//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "SniperTraining\fn_preinit.sqf"
#include <core_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

GVAR(ObjectStore) = objNull;

GVAR(ST_POS) = [0,0,0];
GVAR(ST_SIZE) = 0;

GVAR(TRAINING_DISTANCES) = 12;

GVAR(TRAINING_TARGETS_LEFT)=[];
GVAR(TRAINING_TARGETS_RIGHT)=[];
GVAR(TRAINING_TARGETS_MOVING)=[];

GVAR(TRAINING_UNITS_TYPES) = [];
GVAR(TRAINING_DIRECTIONS) = [];

GVAR(CLEARING_BUSY) = false;

GVAR(FEEDBACK_ID) = 0;

GVAR(CLICK_TIMEOUT) = [];

if (isServer) then {
	for [{_i = 0},{_i < GVAR(TRAINING_DISTANCES)},{_i = _i + 1}] do {
		GVAR(TRAINING_TARGETS_LEFT) set [_i, []];
		GVAR(TRAINING_TARGETS_RIGHT) set [_i, []];
		GVAR(TRAINING_TARGETS_MOVING) set [_i, []];
	};
	GVAR(pveh) = [];
	publicVariable QGVAR(pveh);
};

TRACE("End");
TMFPROFILERSTOP;
